#include "drv_led.h"
#include "drv_beep.h"
#include "delay.h"
#include "drv_key.h"
#include "drv_systick.h"
int main(void)
{
	uint8_t key_flag = 0;
	drv_systick_init(168);
	drv_beep_init();
	drv_led_init();
	drv_key_init();

	while(1)
	{
		if(key_flag == 0)
		{
			waterfall_light();
		}
		else
		{
			GPIOA->ODR |= (0X01<<15);//PA15输出高电平(打开蜂鸣器)
			drv_systick_ms(1000);
			GPIOA->ODR &= ~(0X01<<15);//PA15输出低电平(关闭蜂鸣器)
		}
	}
	
}
